<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script src="js/jquery-3.3.1.min.js"></script>
<script>
    //通用json
    $.ajax({
        type:'POST',
        url:'json',
        data:'jso={"name":"zs","age":18}',
        dataType:'text',
        success:function (data) {//字符串
            let d=JSON.parse(data);
            //获取姓名
            let name = d.name;
            alert("ok:"+d.name+d.age);
        }
    });
</script>
</html>